<?php  

/**
* 
*/
class TestFailException extends Exception
{
  
  protected $_test;
  public function getTest(){
    return $this->_test;
  }
  
  public function getFail(){
    return $this->_test->getFail();
  }
  public function __construct(Test $test)
  {
    parent::__construct('Test '.$test.' fails');
    $this->_test = $test;
  }
}


?>